package com.gzz.orchid.context.domain.financial.impl;

import com.gzz.orchid.context.domain.financial.IAccountRepository;
import com.gzz.orchid.context.domain.financial.entity.AccountDo;
import com.gzz.orchid.context.domain.financial.entity.AccountNo;
import com.gzz.orchid.context.infrastructure.persistence.mapper.fin.FinAccountMapper;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 账户仓储实现类
 *
 * @author higmd
 */
@Slf4j
@Component
@RequiredArgsConstructor
public class AccountRepository implements IAccountRepository {
    private final FinAccountMapper accountMapper;

    @Override
    public AccountDo findByNo(AccountNo no) {
        var account = accountMapper.selectOneByCondition(null);
        log.info("查询账户信息:{}", account);
        return null;
    }

    @Override
    public void save(AccountDo accountDo) {

    }
}
